home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmTextFieldGetSelectionPosition.z / XmTextFieldGetSelectionPosition
Encoding:
Text File  |  2003-11-18  |  2.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddGGGGeeeettttSSSSeeeelllleeeeccccttttiiiioooonnnnPPPPoooossssiiiiUUUUttttNNNNiiiiIIIIooooXXXXnnnnXXXX((((SSSSmmmm3333yyyyTTTTXXXXsssseeee))))ttttxxxxeeeettttmmmmFFFFiiiiVVVVeeeellllddddGGGGeeeettttSSSSeeeelllleeeeccccttttiiiioooonnnnPPPPoooossssiiiittttiiiioooonnnn((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_T_e_x_t_F_i_e_l_d_G_e_t_S_e_l_e_c_t_i_o_n_P_o_s_i_t_i_o_n - A TextField    function that
  10.       accesses the position    of the primary selection
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/TextF.h>
  14.  
  15.       Boolean XmTextFieldGetSelectionPosition (wwwwiiiiddddggggeeeetttt,,,, lllleeeefffftttt,,,, rrrriiiigggghhhhtttt)
  16.            _W_i_d_g_e_t     wwwwiiiiddddggggeeeetttt;
  17.            _X_m_T_e_x_t_P_o_s_i_t_i_o_n****lllleeeefffftttt;
  18.            _X_m_T_e_x_t_P_o_s_i_t_i_o_n****rrrriiiigggghhhhtttt;
  19.  
  20.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.       _X_m_T_e_x_t_F_i_e_l_d_G_e_t_S_e_l_e_c_t_i_o_n_P_o_s_i_t_i_o_n accesses the left and    right
  22.       position of the primary selection in the text    buffer of the
  23.       TextField widget.
  24.  
  25.       wwwwiiiiddddggggeeeetttt
  26.            Specifies the TextField widget ID
  27.  
  28.       lllleeeefffftttt Specifies the pointer in    which the position of the left
  29.            boundary    of the primary selection is returned.  This is
  30.            an integer number of characters from the    beginning of
  31.            the buffer.  The    first character    position is 0.
  32.  
  33.       rrrriiiigggghhhhtttt
  34.            Specifies the pointer in    which the position of the
  35.            right boundary of the primary selection is returned.
  36.            This is an integer number of characters from the
  37.            beginning of the    buffer.     The first character position
  38.            is 0.
  39.  
  40.       For a    complete definition of TextField and its associated
  41.       resources, see _X_m_T_e_x_t_F_i_e_l_d(_3_X).
  42.  
  43.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  44.       This function    returns    True if    the widget owns    the primary
  45.       selection; otherwise,    it returns False.
  46.  
  47.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  48.       _X_m_T_e_x_t_F_i_e_l_d(_3_X).
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.